<?php
//------------------------
// 商品评论验证器
//-------------------------

namespace app\common\validate;

use think\Validate;


class GoodsComment extends Validate
{
    protected $rule = [
        'content|评论内容' => 'require|max:600',
        'comment_rank|星级' => 'require|max:1',
    ];

    protected $scene = [
        'comment'  => ['content', 'comment_rank'],
        'reply'    => ['content'],
    ];


}